20. Running your Program Locally
Compiling your Program
If you haven't gotten C++ running locally on your computer, now's a good time to get that done!
This is just a quick note about compiling and running the matrix code on your local computer. Put your main.cpp, matrix.cpp and matrix.h into the same directory. On Linux and Mac you can compile your code with a command like:
g++ main.cpp matrix.cpp
or whatever the equivalent is for your system or compiler. You need to compile both main.cpp and matrix.cpp for the code to compile. Then you can execute your code with something like
./a.out
On Windows, compiling and executing your code will look something like this:
cl /W4 /EHsc main.cpp matrix.cpp
main